@import '~antd/es/style/themes/default.less';

.box {
  height: 50px;
  width: 80px;
  position: relative;
  top: 42%;
  left: 50%;
  border-radius: 16px;
  transform: translate(-50%, -50%);
  background: #2d2f2f;
  overflow: hidden;
  .percent {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    .percentNum {
      animation: hideIndex 0.3s;
      display: none;
    }
    .inIcon {
      animation: hideIndex 0.3s;
      display: none;
      font-size: 32px;
    }
  }
  .water {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 120%;
    transform: translate(0, 100%);
    background: linear-gradient(to bottom, #4d6de3, firebrick);
    transition: all 0.3s;
  }
  .water_wave {
    width: 200%;
    position: absolute;
    bottom: 100%;
  }
  .water_wave_back {
    right: 0;
    fill: #c7eeff;
    -webkit-animation: wave-back 1.4s infinite linear;
    animation: wave-back 1.4s infinite linear;
  }
  .water_wave_front {
    left: 0;
    fill: #4d6de3;
    margin-bottom: -1px;
    -webkit-animation: wave-front 0.7s infinite linear;
    animation: wave-front 0.7s infinite linear;
  }
}

@-webkit-keyframes wave-front {
  100% {
    transform: translate(-50%, 0);
  }
}

@keyframes wave-front {
  100% {
    transform: translate(-50%, 0);
  }
}
@-webkit-keyframes wave-back {
  100% {
    transform: translate(50%, 0);
  }
}
@keyframes wave-back {
  100% {
    transform: translate(50%, 0);
  }
}
@keyframes hideIndex {
  0% {
    opacity: 0;
    transform: translate(0, 100px);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}
